﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransportAnalizer_2._0.Model
{
    static class Check
    {
        // ReSharper disable once UnusedParameter.Local
        public static void RequireNotNullOrEmpty(string value)
        {
            RequireNotNull(value);

            if (value.Trim().Length == 0)
                throw new ArgumentException();
        }
        public static void RequireNotNull(string value)
        {
            if (value == null)
                throw new ArgumentNullException();
        }

        public static void RequireObjectNotNull(object value)
        {
            if (value == null)
                throw new ArgumentNullException();
        }
    }
}
